<?php
namespace app\index\model;

use think\Model;
use think\Db;

class Usermodel extends Model{

    public  function regist($data){
    return  Db::table('rs_puser')->insert($data);
    }

    public function login($row){
        return  Db::table('rs_puser')->where($row)->find();
    }

    public function chick($userphone){
        return Db::table('rs_puser')->where("userphone",$userphone)->find();
    }
}